From: Jyrki Gadinger Date: Fri, 21 Feb 2025 09:30:04 +0000 (+0100) Subject: UserStatusSelector: set focusPolicy on accept button X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~39^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=6a388966a3f7187cb738457c3a9650730517173a;p=nextcloud-desktop.git UserStatusSelector: set focusPolicy on accept button otherwise the status text won't be set on macOS as the text box never loses its focus `Qt.StrongFocus` is the default focusPolicy on all platforms except for macOS, there it's `Qt.TabFocus` the other buttons of the UserStatusSelector don't need that focusPolicy as they do not modify the model from values in the view see also: - https://bugreports.qt.io/browse/QTBUG-110295 - https://codebrowser.dev/qt6/qtdeclarative/src/quicktemplates/qquickabstractbutton.cpp.html#_ZN27QQuickAbstractButtonPrivate4initEv Signed-off-by: Jyrki Gadinger --- diff --git a/src/gui/UserStatusSelector.qml b/src/gui/UserStatusSelector.qml index 9ce7043d0..15abf6595 100644 --- a/src/gui/UserStatusSelector.qml +++ b/src/gui/UserStatusSelector.qml @@ -341,6 +341,7 @@ ColumnLayout { Layout.fillHeight: true primary: true colored: true + focusPolicy: Qt.StrongFocus text: qsTr("Set status message") onClicked: userStatusSelectorModel.setUserStatus() }